home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / games / IndiZone / sw / control.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  1.4 KB  |  51 lines

  1. /*
  2.  * Copyright (C) 1994, Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6.  * the contents of this file may not be disclosed to third parties, copied or
  7.  * duplicated in any form, in whole or in part, without the prior written
  8.  * permission of Silicon Graphics, Inc.
  9.  *
  10.  * RESTRICTED RIGHTS LEGEND:
  11.  * Use, duplication or disclosure by the Government is subject to restrictions
  12.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15.  * rights reserved under the Copyright Laws of the United States.
  16.  */
  17. #ifndef CONTROL_H
  18. #define    CONTROL_H
  19.  
  20. #include <Xm/Form.h>
  21.  
  22. enum RadioSetting    { RadioOff = 0, RadioTeam = 1, RadioAll = 2 };
  23. enum SoundSetting    { SoundOff = 0, SoundWarnings = 1, SoundAll = 2 };    
  24.  
  25. Widget            makeControlPanel(Widget parent);
  26. void            controlPanelReset();
  27. void            controlPanelAdvance(float dt);
  28. int            keyEvent(XEvent* e);
  29.  
  30. RadioSetting        radioDial();
  31. void            radioDial(RadioSetting r);
  32.  
  33. SoundSetting        soundDial();
  34. void            soundDial(SoundSetting s);
  35.  
  36. void            weaponChanged();
  37. void            laserChanged();
  38. void            missileChanged();
  39. void            thrustChanged();
  40. void            fuelChanged();
  41. void            shieldsChanged();
  42. void            targetChanged();
  43.  
  44. void            scoreChanged();
  45. void            playersChanged();
  46. void            flagChanged();
  47.  
  48. void            addMessage(char* msg);
  49.  
  50. #endif
  51.